package pl.edu.pw.polygen.modeler.client.graph;

import java.util.ArrayList;
import java.util.List;

public class GraphHandler {
	private static List<GraphModel> graphModels = null;
	
	public static GraphModel getInstance(int id){
		if(graphModels==null){
			graphModels = new ArrayList<GraphModel>();
		}
		if(graphModels.size() == id){
			graphModels.add(new GraphModel());
		}
		return graphModels.get(id);
	}
	
}
